Return the stored vcpus_params if the domain is not running.
authorEwan Mellor <ewan@xensource.com>
Thu, 1 Feb 2007 18:14:40 +0000 (18:14 +0000)
committerEwan Mellor <ewan@xensource.com>
Thu, 1 Feb 2007 18:14:40 +0000 (18:14 +0000)
Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/python/xen/xend/XendDomainInfo.py

index 35d35ba28a9a3555baeb5e3530d60036da313d7a..ddc240b96b73a80932521eb4c97c9260c33017c2 100644 (file)
@@ -1978,7 +1978,7 @@ class XendDomainInfo:
             return 'unknown'
     def get_vcpus_params(self):
         if self.getDomid() is None:
-            return {}
+            return self.info['vcpus_params']
 
         retval = xc.sched_credit_domain_get(self.getDomid())
         return retval